package com.zx.nacosprovider.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description ProviderController
 * @Author Zhang Xin
 * @Date 2020/7/23
 */
@RestController
public class ProviderController {

    @GetMapping("/hi")
    public String hi(@RequestParam(value = "name",defaultValue = "ZX")String name){
        // 添加异常,触发熔断
//        int i = 1/0;
        return "hi "+name;
    }

}
